package com.wanlian.router.net.netty2.msg.Device;

import com.wanlian.router.net.netty2.msg.BaseMsg;
import com.wanlian.router.net.netty2.msg.Device.model.IpInfo;
import com.wanlian.router.net.netty2.msg.MsgType;
import com.wanlian.router.utils.JsonStringUtil;

/**
 * 获取静态ip参数
 */
public class StaticIpinfoGetReply extends BaseMsg {

    private IpInfo ipInfo;

    public StaticIpinfoGetReply() {
        super();
        this.setType(MsgType.DEVICE_STATICGET_REP);
    }

    public IpInfo getIpInfo() {
        return ipInfo;
    }

    public void setIpInfo(IpInfo ipInfo) {
        this.ipInfo = ipInfo;
        this.setContent(JsonStringUtil.writeValueAsString(ipInfo));
    }

}
